package com.insight.modules.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import com.insight.modules.system.entity.SysDepartRoom;
import com.insight.modules.system.mapper.SysDepartRoomMapper;
import com.insight.modules.system.service.ISysDepartRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * @author 李政
 * @ClassName SysDepartRoomServiceImpl
 * @description: TODO
 * @datetime 2025年 04月 09日 14:54
 * @version: 1.0
 */
@Slf4j
@Service
public class SysDepartRoomServiceImpl extends ServiceImpl<SysDepartRoomMapper, SysDepartRoom> implements ISysDepartRoomService {

    @Autowired
    private SysDepartRoomMapper sysDepartRoomMapper;

    /**
     * 根据房间ID列表批量删除对应的房间记录
     * @param roomIdList 要删除的房间ID集合
     */
    @Override
    public void deleteByRoomIds(ArrayList<String> roomIdList) {
        // 调用Mapper层批量删除房间
        sysDepartRoomMapper.deleteByRoomIds(roomIdList);
    }
}